<?php
class Answer_Component_Block_Tag extends Phpfox_Component
{
    public function process()
    {
        $aTags = Phpfox::getService('answer.question')->orderTag();
        if (count($aTags) > 1) {
            $this->template()->assign(array(
                    'sHeader' => Phpfox::getPhrase('answer.popular_tags'),
                    'aTags' => $aTags,
                    'view' => 1
                )
            );
            return 'block';
        }
        else {
            $this->template()->assign('view', 0);
        }
    }
}